import {
	getRequest,
	postRequest
} from './request.js'

/* 基础数据模块 */
// export const login = (data, blon) => postRequest('/api/user/login', data, blon)
// 推荐位
export const positionList = data => postRequest("/api/position.content/lists", data, false);
// 推荐位详情
export const positionDetail = data => postRequest("/api/position.content/detail", data, false);
// 登录
export const indexLogin = data => postRequest("/houtai.php/index/login", data, false);
// 子账号登录
export const storeadminLogin = data => postRequest("/index.php/storeadmin/index/login", data, false);
export const getCaptcha = data => postRequest("/index.php", data, false);
// 充值记录
export const storePayIndex = data => getRequest("/storeadmin/store_pay/index", data, false);
// 一键去水印
export const videoDownloadNomark = data => postRequest("/storeadmin/video_download/nomark", data, false);
// AI创作文案
export const aiChat = data => postRequest("/storeadmin/ai_chat/ai_chat", data, false);
// 一键生成
export const makeVideoIndex = data => getRequest("/storeadmin/make_video/index", data, false);
export const makeVideoIndex2 = data => postRequest("/storeadmin/make_video/index", data, false);
// 消费明细
export const storePriceindex = data => getRequest("/storeadmin/store_price/index", data, false);
// 视频库
export const tuiguangVideoIndex = data => getRequest("/storeadmin/tuiguang_video/index", data, false);
// 视频分组
export const tuiguangVideoGroup = data => getRequest("/storeadmin/tuiguang_video_group/index", data, false);
// 添加分组
export const tuiguangVideoGroupAdd = data => postRequest("/storeadmin/tuiguang_video_group/add", data, false);
// 修改分组
export const tuiguangVideoGroupEdit= data => postRequest("/storeadmin/tuiguang_video_group/edit/ids", data, false);
// 删除分组
export const tuiguangVideoGroupDel= data => postRequest("/storeadmin/tuiguang_video_group/del", data, false);
// 素材库
export const generalAttachment = data => getRequest("/storeadmin/general/attachment/select", data, false);
// 添加素材
export const aliossNotify= data => postRequest("/miniprogram/oss/notify", data, false);
// 话题库
export const mergeKeywordIndex = data => postRequest("/storeadmin/merge_keyword/index", data, false);
// 添加关键字
export const mergeKeywordAdd= data => postRequest("/storeadmin/merge_keyword/add", data, false);
// 删除关键字
export const mergeKeywordDel= data => postRequest("/storeadmin/merge_keyword/del", data, false);
// 分组列表
export const mergeKeywordGroupIndex = data => getRequest("/storeadmin/merge_keyword_group/index", data, false);
// 添加分组
export const mergeKeywordGroupAdd= data => postRequest("/storeadmin/merge_keyword_group/add", data, false);
// 删除分组
export const mergeKeywordGroupDel= data => postRequest("/storeadmin/merge_keyword_group/del", data, false);
// 抖音私信加微信
export const storeCardIndex = data => getRequest("/storeadmin/card/index", data, false);
// 添加
export const storeCardAdd= data => postRequest("/storeadmin/card/add", data, false);
// 删除
export const storeCardDel= data => postRequest("/storeadmin/card/del", data, false);
// 首页数据
export const dashboardIndex = data => getRequest("/miniprogram/storeadmin.dashboard/index", data, false);
// 个人中心
export const profileIndex = data => getRequest("/miniprogram/storeadmin.profile/index", data, false);
// 智能文案
export const aiChatIndex = data => getRequest("/miniprogram/storeadmin.ai_chat/index", data, false);
// 话题设置
export const storeKeywordIndex= data => postRequest("/storeadmin/store_keyword", data, false);
// 智能回复设置
export const tuiguangKeywordIndex = data => getRequest("/storeadmin/tuiguang_keyword/index", data, false);
// 智能回复设置
export const tuiguangKeywordAdd= data => postRequest("/storeadmin/tuiguang_keyword/add", data, false);
export const tuiguangKeywordDel= data => postRequest("/storeadmin/tuiguang_keyword/del", data, false);
// 员工账号授权
export const tuiguangUserIndex = data => getRequest("/storeadmin/tuiguang_user/index", data, false);
// 账号分组列表
export const tuiguangUserGroupIndex = data => getRequest("/storeadmin/tuiguang_user_group/index", data, false);
export const tuiguangUserGroupAdd = data => postRequest("/storeadmin/tuiguang_user_group/Add", data, false);
export const tuiguangUserGroupDel = data => postRequest("/storeadmin/tuiguang_user_group/del", data, false);
// 数据大屏
export const userDaping = data => getRequest("/miniprogram/storeadmin.user_daping/index", data, false);
// 排名
// 员工排名查询
export const storeadminRankIndex = data => getRequest("/storeadmin/rank/index", data, false);
export const storeadminTaskIndex = data => getRequest("/storeadmin/rank_task/index", data, false);
// 添加
export const rankAdd = data => postRequest("/storeadmin/rank/add", data, false);
// 删除
export const rankDel = data => postRequest("/storeadmin/rank/del", data, false);
// 员工排名明细
export const videoRankIndex = data => getRequest("/storeadmin/video_rank/index", data, false);
// 评论列表
export const tuiguangCommentIndex = data => getRequest("/storeadmin/tuiguang_comment/index", data, false);
// 员工发布视频
export const tuiguangTaskAutoIndex = data => getRequest("/storeadmin/tuiguang_task_auto/index", data, false);
export const tuiguangTaskIndex = data => getRequest("/storeadmin/tuiguang_task/index", data, false);
// 企业号授权
export const qiyeUserIndex = data => getRequest("/storeadmin/qiye_user/index", data, false);
// 管理意向客户
export const qiyeIntentionIndex = data => getRequest("/storeadmin/qiye_intention/index", data, false);
// 添加普通视频
export const tuiguangVideoAdd = data => postRequest("/storeadmin/tuiguang_video/add", data, false);
// 删除
export const tuiguangVideoDel = data => postRequest("/storeadmin/tuiguang_video/del", data, false);
// 抖音扫码授权
export const getQrcodeDou = data => postRequest("/storeadmin/tuiguang_user/get_qrcode", data, false);
export const checkQrconnectDou = data => postRequest("/storeadmin/tuiguang_user/check_qrconnect", data, false);
export const getQrcodeShipinhao = data => postRequest("/storeadmin/tuiguang_user/get_qrcode_shipinhao", data, false);
export const checkQrconnectShipinhao = data => postRequest("/storeadmin/tuiguang_user/check_qrconnect_shipinhao", data, false);
// 文案库
// 分类
export const articleCategory = data => getRequest("/storeadmin/article/category", data, false);
// 列表
export const articleList = data => getRequest("/storeadmin/article/index", data, false);
// 矩阵视频发布
export const tuiguangTaskAdd = data => postRequest("/storeadmin/tuiguang_task/add", data, false);
export const tuiguangTaskPhotosAdd = data => postRequest("/storeadmin/tuiguang_task_photos/add", data, false);
// 用户列表
export const tuiguangPageUser = data => postRequest("/storeadmin/tuiguang_task/ajax_page_user", data, false);
// 定时发送视频
export const tuiguangTaskAutoAdd = data => postRequest("/storeadmin/tuiguang_task_auto/add", data, false);
// 添加文案
export const articleAdd = data => postRequest("/storeadmin/article/add", data, false);
// 活动列表
export const activityList = data => getRequest("/storeadmin/activity/index", data, false);
// 活动状态
export const activityMulti = data => postRequest("/storeadmin/activity/multi", data, false);
// 活动码获取
export const activityQrcode = data => getRequest("/index.php/miniprogram/storeadmin/activity/qrcode", data, false);
// 优惠券
export const businessCoupon = data => postRequest("/storeadmin/business_coupon/index", data, false);
export const businessCouponGet = data => getRequest("/storeadmin/business_coupon/index", data, false);
// 添加活动
export const activityAdd = data => postRequest("/storeadmin/activity/add?mode=''&dialog=1", data, false);
// 删除活动
export const activityDel = data => postRequest("/storeadmin/activity/del", data, false);
// 活动列表
export const activityUserIndex = data => getRequest("/storeadmin/activity_user/index", data, false);
// 删除
export const activityUserDel = data => postRequest("/storeadmin/activity_user/del", data, false);
// 优惠卷添加
export const activityUserAdd = data => postRequest("/storeadmin/business_coupon/add", data, false);
export const activityUserMulti = data => postRequest("/storeadmin/business_coupon/multi", data, false);
export const activityUserdel = data => postRequest("/storeadmin/business_coupon/del", data, false);